package com.biz.primus.ms.geo.dao.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 城市
 *
 * @author defei
 */
@Data
@Entity
@Table(name = "geo_city", indexes = {@Index(columnList = "provinceId")})
public class City extends AbstractAreaWithCode {

    private Integer provinceId;

    /**
     * 是否热门城市
     */
    private Boolean hotCity = Boolean.FALSE;
    /**
     * 热门城市排序序号
     */
    @Column(unique = true)
    private Integer idxSort;

    public City(Integer id) {
        this.setId(id);
    }

    public City() {

    }
}
